package String1;

import java.util.Scanner;

public class String1_4 {
    public static void main(String[] args) {
        int big=0,small=0,num=0;
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一串字符串");
        String str= scanner.next();
        for (int i = 0; i < str.length(); i++) {
            if (str.charAt(i)>='a'&&str.charAt(i)<='z'){
                small++;
            }else if (str.charAt(i)>='A'&&str.charAt(i)<='Z') {
                big++;
            }else if (str.charAt(i)>='0'&&str.charAt(i)<='9') {
                num++;
            }
        }
        System.out.println("大写字母：" + big);
        System.out.println("小写字母： " + small);
        System.out.println("数字个数：" + num);
    }
}
